<%-- 
    Document   : AdministrarAsistencias
    Created on : 21-abr-2014, 17:09:37
    Author     : Isaac Paliza <anndysaac@hotmail.com>
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        <meta charset="utf-8"/>
        <title>SICFE - Administrar Asistencias</title>
    </head>
    <body>
        <header>
            <samp style=color:#FA6900;>Administrar Asistencias</samp>
        </header>
        <section>
            <section>
                <table width="100%" height="100%">
                    <tr align="left">
                    <form action='AdministrarAsistencias' method="GET">
                        <th align="left">Tipo de Busqueda</th>
                        <th align="left">
                            <select name="idTipoBusqueda" onchange="opcionSelect(this.form)">
                                <option value="0" selected>Seleccionar...</option>
                                <option value="1">Por Codigo</option>
                                <option value="2">Por Feria</option>
                            </select>
                        </th>
                        <th align="left">
                            <input type="text" name="campo" >
                        </th>
                        <th align="left">
                            <input type="submit" name="buscarDato" value="Buscar">
                        </th>
                    </form>
                    </tr>
                </table>
            </section>
            <article id="fg">
                <table border="1px" rules="rows" width="100%" height="100%">
                    <tr bgcolor= "#FBB829" border="1px">
                        <th align="center">N.</th>
                        <th></th>
                        <th align="left">Nombre y Apellidos</th>
                        <th>Detalle</th>
                    </tr>
                
                <c:forEach items="${requestScope['ListaAsistenciaTrabajadores']}" var="d" varStatus="c">
                    <c:choose>
                        <c:when test="${(c.count % 2) == 0}"></c:when>
                        <c:otherwise><tr></c:otherwise>
                    </c:choose>
                        <form action="AdministrarAsistencias" method="GET" style="display:inline">    
                        <td align="center">${c.count}</td>
                        <td><input type="hidden" name="idTrabajador" value="${d['idTrabajador']}"/></td>
                        <td>${d['nombre']} ${d['apellidos']}</td>
                        <td align="center"><input type="submit" name="ver" value="ver"/></td>
                        </form>
                        </tr>
                </c:forEach>
                
                </table>
            </article>
        </section>
    </body>
</html>
